package cn.yanhu.kuwanapp.welfare

import androidx.lifecycle.MutableLiveData
import cn.woochen.comlib.BaseViewModel
import cn.yanhu.kuwanapp.bean.response.RespCarouselBean
import cn.yanhu.kuwanapp.bean.response.RespGoldReceiveBean
import cn.yanhu.kuwanapp.bean.response.RespHomeTabBean
import cn.yanhu.kuwanapp.bean.response.RespUserInfoBean
import cn.yanhu.kuwanapp.http.status.ResultState
import cn.yanhu.kuwanapp.utils.ext.request
import cn.yanhu.kuwanapp.utils.ext.rxApi

class WelfareViewModel:BaseViewModel() {
    val videoRewardInfo  = MutableLiveData<ResultState<RespGoldReceiveBean>>()

    //金币领取
    fun videoReward(money:String = "",businessType:String = "",name:String =""){
        request({ rxApi.videoReward(money, businessType, name) }, videoRewardInfo,true)
    }


}